package com.woniuxy.service;

import com.woniuxy.entity.QuestionInventory;
import com.woniuxy.entity.ResponseEntity;

import java.util.List;

public interface QuestionInventoryService {
    /**
     * @description:查询题库
     * @author: HeMinghong
     * @date: 2022/5/31 15:59
     * @param:
     * @return:
     **/
    com.woniuxy.entity.ResponseEntity findAll();

    /**
     * @description:
     * @author: HeMinghong
     * @date: 2022/5/31 16:00
     * @param:
     * @return:
     **/

    /**
     * @description:修改题库
     * @author: HeMinghong
     * @date: 2022/5/31 16:03
     * @param: []
     * @return: int
     **/
    com.woniuxy.entity.ResponseEntity updateOne(QuestionInventory questionInventory);

    /**
     * @description:删除题库
     * @author: HeMinghong
     * @date: 2022/5/31 16:16
     * @param: [questionsInventory]
     * @return: com.woniuxy.entity.ResponseEntity
     **/
    com.woniuxy.entity.ResponseEntity deleteOne(QuestionInventory questionInventory);

    /**
     * @description:添加题库
     * @author: HeMinghong
     * @date: 2022/5/31 16:49
     * @param: [questionsInventory]
     * @return: com.woniuxy.entity.ResponseEntity
     **/
    ResponseEntity addOne(QuestionInventory questionInventory);

    List<QuestionInventory> findInventories();

    public List<QuestionInventory> findAllSubjects();

    ResponseEntity findAllSubjects2();

    ResponseEntity findById(Integer id);

    QuestionInventory findBySubject(String subject);

    List<QuestionInventory> findAllSonSubjectById(Integer id);
}
